<template>
  <!--导航栏头部-->
  <div class="head-box">
    <div class="container">
      <div class="w container_box">
        <div class="title">
          <img src="../assets/images/logo.png" />
          <span>{{ laboratoryName }}</span>
        </div>
        <div class="nav">
          <div v-for="item in navList">
            <router-link :to="item.path"><span>{{ item.navName }}</span></router-link>
          </div>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  name: "Nav",
  data() {
    return {
      laboratoryName: '数字传媒实验室',
      navList: [
        {
          navName: '首页',
          path: '/index'
        },
        {
          navName: '客户案例',
          path: '/customer_case'
        },
        {
          navName: '培养方案',
          path: '/train'
        },
        {
          navName: '关于我们',
          path: '/about'
        }
      ]
    }
  },
}
</script>

<style lang="scss" scoped>
span {
  font-family: "Microsoft YaHei";
  font-weight: bold;
  color: #ece3e3;
  font-size: 20px;
}

.head-box{
  min-width: 1200px;
  width: 100%;
  height: 80px;
  .container {
    position: fixed;
    width: 100%;
    height: 80px;
    display: flex;
    padding-left: 50px;
    padding-right: 50px;
    background-color: rgba(3, 187, 122, 0.98);
    box-shadow: 0px 5px 16px #888888;
    z-index: 99;

    .container_box {
      display: flex;

      .title {
        height: 100%;
        display: flex;
        align-items: center;

        img {
          width: 55px;
          height: 55px;
          margin-right: 18px;
        }
      }

      .nav {
        display: flex;
        margin-left: 13%;
        align-items: center;

        a {
          font-size: 16px;
          margin-right: 120px;
        }

        span:hover {
          color: #FDE06F
        }
      }
    }
  }
}


.router-link-active {
  span {
    padding-bottom: 10px;
    border-bottom: 3px solid #FDE06F;
  }
}
</style>
